package com.jnshu.service.impl;

import com.jnshu.dao.ManageDao;
import com.jnshu.dao.RoleDao;
import com.jnshu.pojo.ZuulManageDto;
import com.jnshu.pojo.ZuulManage;
import com.jnshu.pojo.ZuulRole;
import com.jnshu.service.AdminService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author pipiretrak
 * @date 2019/8/3 - 15:26
 */
@Service
public class AdminServiceImpl implements AdminService {

    @Resource
    ManageDao manageMapper;

    @Resource
    RoleDao roleMapper;

    @Override
    public ZuulRole selectRoleById(Long id) {
        return roleMapper.selectRoleById(id);
    }

    @Override
    public ZuulManage selectManageByName(String name) {
        return manageMapper.selectManageByName(name);
    }

    @Override
    public Long selectManageIdByName(String name) {
        return manageMapper.selectManageIdByName(name);
    }

    @Override
    public ZuulManageDto selectLoginInfo(String name) {
        return manageMapper.selectLoginInfo(name);
    }
}
